package com.spring.doctor.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.spring.doctor.dao.DocDoctorInfoDao;
import com.spring.doctor.dto.RegionDocDto;
import com.spring.doctor.service.IDocDoctorInfoService;

/**
 * Created by liuayng on 2016/7/12.
 */
@Service
public class DocDoctorInfoServiceImpl implements IDocDoctorInfoService {
	protected final static Logger logger = Logger.getLogger(DocDoctorInfoServiceImpl.class);

	@Autowired
	private DocDoctorInfoDao doctorInfoDao;



	@Override
	public List<RegionDocDto> staticsDocRegion() {
		// TODO Auto-generated method stub
		return doctorInfoDao.find("staticsDocRegion", null);
	}

	@Override
	public int selectTotalDoctor(Integer authStatus) {
		// TODO Auto-generated method stub
		Map<String, Object> map = new HashMap<>();
		map.put("authStatus", authStatus);
		return doctorInfoDao.get("selectTotalDoctor", map);
	}
	
	
	


}
